﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace ConsoleApp3
{
    //1. 定义一个图书馆里系统里面的用户类；
    //2. 在用户类中定义一个方法输出当前用户对象的信息；然后在主方法调用输出；
    class Program
    {
        static void Main(string[] args)
        {
            OOP users = new OOP();
            OOP2 tushu = new OOP2();
            OOP3 chubanshe = new OOP3();

            users.Name = "哈哈";
            users.Age = 20;
            users.Tel = 3838438;
            users.Sex = '男';
            users.Time = 7;
            Console.WriteLine("姓名：{0}，年龄：{1}，电话：{2}，性别：{3}，时间：{4}天", users.Name, users.Age, users.Tel, users.Sex, users.Time);

            tushu.ShuMing = "斗罗大陆";
            tushu.ZuoZe = "唐家三少";
            tushu.JiaGe = 40.0;
            Console.WriteLine("书名：{0}，作者：{1}，价格：{2}", tushu.ShuMing,tushu.ZuoZe,tushu.JiaGe);

            chubanshe.ChuBanSheName = "儿童出版社";
            chubanshe.ChuBanSheDiZhi = "北京山沟沟1号";
            chubanshe.ChuBanSheUsers = "无名氏";
            Console.WriteLine("出版社名称：{0}，出版社地址：{1}，出版社联系人：{2}", chubanshe.ChuBanSheName,chubanshe.ChuBanSheDiZhi,chubanshe.ChuBanSheUsers);
        }

    }
}
